
//导航item Model
import 'package:flutter/cupertino.dart';

class NavigationModel{
  String title;//标题
  String address;//地址
  double latitude;
  double longitude;
  IconData iconData;//图标


  NavigationModel(
      {this.title, this.address,this.latitude,this.longitude,this.iconData});

  NavigationModel.fromJson(Map<String, dynamic> json) {
    title = json['title'];
    address = json['address'];
    latitude=json['latitude'];
    longitude=json['longitude'];
    iconData=json['iconData'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title'] = this.title;
    data['address'] = this.address;
    data['latitude']=this.latitude;
    data['longitude']=this.longitude;
    data['iconData']=this.iconData;
    return data;
  }
}